//go:build ignore
// +build ignore

package main

import (
	"fmt"
)

func TestNestedQuery() {
	role := "admin"

	query := Query(`
		SELECT * FROM users WHERE id IN (
			{
				return Query('
					SELECT user_id FROM permissions WHERE role = #{role}
				')
			}
		)
	`)

	fmt.Println("Nested Query:", query.String())
}

func main() {
	TestNestedQuery()
}
